import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'

const app = createApp(App)

app.use(ElementPlus)
app.use(store).use(router).mount('#app')
app.use(VueAxios, axios)

// axios自动携带cookie信息
axios.defaults.withCredentials=true;
axios.defaults.baseURL='http://127.0.0.1:8080'